import { Injectable } from '@angular/core';
import {DamAPI} from "../../peach-constants";
import {Observable} from "rxjs/Observable";
import {RequestUtil} from "../../../../util/request-util";

@Injectable()
export class SiteAlertService {

  constructor(
    private requestUtil: RequestUtil
  ) { }
  getWarnSiteDetail(startTime,endTime,siteName):Observable<any>{
    let params = "format=json&pointType=raiseDustSite"+"&startTime="+startTime+"&endTime="+endTime+"&siteName="+siteName;
    return this.requestUtil.get(DamAPI.mapWarnSiteDetail,params);
  }
}
